package handler

import (
	v1 "gin-admin/handler/v1"
	v2 "gin-admin/handler/v2"

	"gorm.io/gorm"
)

type HandlerApp struct {
	V1App v1.HandlerApp
	V2App v2.HandlerApp
}

func NewHandlerApp(db *gorm.DB) *HandlerApp {
	return &HandlerApp{
		V1App: *v1.NewHandlerApp(),
		V2App: *v2.NewHandlerApp(),
	}
}
